﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/AdminCP/Views/Shared/ViewMasterPage1.Master"
    Inherits="System.Web.Mvc.ViewPage<InfoTech.Mvc.LanTranh.MucVu.Models.SOXUCDAUModel>" %>

<%@ Import Namespace="InfoTech.LanTranh.MucVu.Service" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div class="content-box">
        <div class="content-box-header">
            <h3>
                Xức Dầu Bệnh Nhân</h3>
        </div>
        <!-- End .content-box-header -->
        <div class="content-box-content">
            <%
                Html.EnableClientValidation(); %>
            <% 
                using (Html.BeginForm())
                {%>
            <%: Html.ValidationSummary() %>
            <%:Html.HiddenFor(c=>c.MAXUCDAU) %>
            <%:Html.HiddenFor(c=>c.MAGIAODAN) %>
            <table cellpadding="3" cellspacing="3">
                <tr>
                    <td align="right" class="cellTitle" valign="middle">
                        Ngày
                    </td>
                    <td>
                        <div class="editor-field">
                            <table cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <div class="editor-field">
                                            <%: Html.DropDownListFor(model => model.NGAY,GIAODANService.Get_List_Days(), new { style = "width: 140px", @class="text-input" })%>
                                            <%: Html.ValidationMessageFor(model => model.NGAY, "(*)")%>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="editor-field">
                                            <%: Html.DropDownListFor(model => model.THANG,GIAODANService.Get_List_Months(), new { style = "width: 145px", @class="text-input" })%>
                                            <%: Html.ValidationMessageFor(model => model.THANG, "(*)")%>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="editor-field">
                                            <%: Html.DropDownListFor(model => model.NAM,GIAODANService.Get_List_Years(), new { style = "width: 135px", @class="text-input" })%>
                                            <%: Html.ValidationMessageFor(model => model.NAM, "(*)")%>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="right" class="cellTitle" valign="middle">
                        Tên Linh Mục
                    </td>
                    <td>
                        <div class="editor-field">
                            <%:Html.HiddenFor(c=>c.MALINHMUC) %>
                            <%: Html.TextBoxFor(model => model.TENLINHMUC, new { style = "width: 400px", @class="text-input" })%>
                            <%: Html.ValidationMessageFor(model => model.TENLINHMUC, "(*)")%>
                        </div>
                    </td>
                    <td>
                        <img src="<%=Html.AreaImagesPath("AdminCP")%>search.png" style="cursor: pointer"
                            onclick="javascript:TimLinhMuc();" />
                    </td>
                </tr>
                <tr>
                    <td align="right" class="cellTitle" valign="middle">
                        Ghi Chú
                    </td>
                    <td>
                        <div class="editor-field">
                            <%: Html.TextAreaFor(model => model.GHICHU, 5, 50, new { style = "width: 390px;overflow:auto;", @class = "text-input" })%>
                            <%: Html.ValidationMessageFor(model => model.GHICHU, "(*)")%>
                        </div>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td class="lineRow" colspan="3">
                    </td>
                </tr>
                <tr>
                    <td align="right" class="cellTitle" valign="middle">
                    </td>
                    <td>
                        <input type="submit" value="Cập Nhật" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" />
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
            <% } %>
        </div>
        <!-- End .content-box-content -->
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderCss" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderScript" runat="server">
    <script language="javascript" type="text/javascript">
        function TimLinhMuc() {
            Dialog('<%=Url.Action("TimLinhMuc","GiaDinhCongGiao",new {id=ViewData["GENDERID"]}) %>', '', 'Tìm Linh Mục', 665, 300, HideDialog, ClearDataLinhMuc);
        }
        function ReceiveLinhMuc(id, value) {
            $('#TENLINHMUC').val(value);
            $('#MALINHMUC').val(id);
        }
        function ClearDataLinhMuc() {
            $('#TENLINHMUC').val('');
            $('#MALINHMUC').val('');
        } 
    </script>
</asp:Content>
